(function(clazz,is){
	
	var classdat = Get("/clazz/name/"+clazz).obj;
	
	var db   = Get("/"+classdat.sever+"/"+clazz).obj;
	
	var data  = [];
	
	var keyname={};
	if(is!=null)
	for(f in classdat.fields){
		keyname[classdat.fields[f].name]=classdat.fields[f].text;
	}
	for(d in db){
		if(classdat.sever=="entity"){
			var info = db[d].info;
			var obj  = {};
			obj.id 	 = db[d].id;
			for(i in info){
				if(is!=null){
					obj[keyname[info[i].key]] = info[i].value;
				}else
				obj[info[i].key] = info[i].value;
			}
			data.push(obj);
		}else{
			data.push(db[d]);
		}
	}
	//log(data);
	return data;
})